<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 二维数组
      const arr = [
        ["a", "b", "c"],
        ["e", "f", "g"],
        ["h", "i", "j"],
      ];
      //遍历
      for (let i = 0; i < arr.length; i++) {
        for (let j = 0; j < arr[i].length; j++) {
          console.log(arr[i][j]);
        }
      }
      //遍历
      for (let v1 of arr) {
        for (let v2 of v1) {
          console.log(v2);
        }
      }

      /* arr1 = {
        0: {
          0: "a", 1: "b", 2: "c",
        },
        1: {
          0: 4, 1: 5, 2: 6,
        },
        2: {
          0: 7, 1: 8, 2: 9,
        },
      }; */
    </script>
  </body>
</html>
